<?php
namespace app\common\model;

use think\Model;

class ChargingModel extends Model
{
    protected $table = 'charge_pile';
    protected $autoWriteTimestamp = 'timestamp';

    public function  hasManyOrder()
    {
        return $this->hasMany('OrderModel', 'charge_id', 'id');
    }
}